# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-pytest-isort
_pyname=pytest-isort
pkgver=1.3.0
pkgrel=2
pkgdesc="pytest plugin to check import ordering using isort"
url="https://pypi.org/project/pytest-isort/"
arch="noarch"
license="BSD-3-Clause"
depends="py3-pytest py3-isort"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pytest-isort/pytest-isort-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="a26c5dd9428b85d1387239245c437fded84ece8148ab016de9e41be3dff72627d0e7a47176d9fa5768b366655fe7affd4f665c3d2cd6fb2f2a2e15334e1fff63  pytest-isort-1.3.0.tar.gz"
